let  OSS=require('ali-oss');

let client=new OSS({
  accessKeyId: 'LTAI4G4mtowFDmB54HvG4L7S',
  accessKeySecret: 'jXfaRmOGm8uWuKxOoBDYnAncLHABPc',
  bucket: 'myownpicture',
  region: 'oss-cn-beijing'   //  你所购买oss服务的区域，默认oss-cn-hangzhou
})

// 上传
export async function put (filePath, file) {
  try {
    return await client.put(filePath, file)
  } catch (err) {
    console.log(err)
  }
}

// 删除
export async function remove (filePath) {
  try {
    return await client.delete(filePath)
  } catch (err) {
    console.log(err)
  }
}